package org.ws.task.netty;

public interface NettyService extends AutoCloseable {

    void start();

    int port();

    /**
     * 等待启动
     * @return
     */
    boolean awaitStart(long timeout);

    void shutdown();

    boolean isActive();
}
